﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="MakeIT.SGI.ERP.Apresentacao.WebForm1" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="App_Themes/Padrao/styleBackOffice.css" rel="stylesheet" type="text/css" />
    <link href="App_Themes/Padrao/Caixa.css" rel="stylesheet" type="text/css" />
    <script src="JavaScript/jsBackOffice.js" type="text/javascript"></script>
    <style type="text/css">
        .style1
        {
            width: 104px;
        }
        .style2
        {
            width: 18px;
            height: 18px;
        }
        .style3
        {
            width: 30px;
        }
        .style4
        {
            width: 30px;
            height: 25px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ToolkitScriptManager ID="Toolkitscriptmanager1" runat="server">
    </asp:ToolkitScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div class="mioloConteudo">
                <asp:Image ID="Image9" runat="server" ImageUrl="~/App_Themes/Padrao/Imagens/backoffice/icoCaixa.png"
                    CssClass="esquerdo" />
                <div class="txtCinza18">
                    Caixas</div>
                <br />
                <br />
                <hr />
                <div align="center">
                    <asp:Image ID="Image13" runat="server" 
                        ImageUrl="~/App_Themes/Padrao/Imagens/backoffice/arrow-up.png" Width="48px" />
                </div>
                <br />
                <asp:Panel ID="Panel3" runat="server">
                    <table style="width: 880px;">
                        <tr>
                            <td width="50%">
                                Caixas em uso
                            </td>
                            <td width="50%">
                                Caixas Disponíveis
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                <asp:Panel ID="Panel2" runat="server" ScrollBars="Auto" Width="400px">
                                    <asp:DataList ID="dlCxAberto" runat="server" RepeatDirection="Horizontal">
                                        <ItemTemplate>
                                            <asp:Panel ID="pnlCxAberto" runat="server" Height="78px">
                                                <div class="btCaixa">
                                                    <asp:Image ID="Image11" runat="server" 
                                                        ImageUrl="~/App_Themes/Padrao/Imagens/backoffice/cxAberto.png" />
                                                    <br />
                                                    <asp:Button ID="btCxAberto" runat="server" 
                                                        CommandArgument='<%#Eval("PKString") %>' OnClick="btCxAberto_Click" 
                                                        Text='<%#Eval("caixa") %>' />
                                                </div>
                                            </asp:Panel>
                                        </ItemTemplate>
                                    </asp:DataList>
                                </asp:Panel>
                            </td>
                            <td class="style1">
                                <asp:Panel ID="Panel1" runat="server" ScrollBars="Auto" Width="400px">
                                    <asp:DataList ID="dlCxDisponivel" runat="server" RepeatDirection="Horizontal">
                                        <ItemTemplate>
                                            <asp:Panel ID="pnlCxDisponivel" runat="server" CssClass="pnlCxDisponivel" 
                                                Height="78px">
                                                <div class="btCaixa">
                                                    <asp:Image ID="Image12" runat="server" 
                                                        ImageUrl="~/App_Themes/Padrao/Imagens/backoffice/cxFechado.png" />
                                                    <br />
                                                    <asp:Button ID="btCxDisponivel" runat="server" 
                                                        CommandArgument='<%#Eval("PKString") %>' CssClass="btCxDisponivel" 
                                                        OnClick="btCxDisponivel_Click" Text='<%#Eval("caixa") %>' />
                                                </div>
                                            </asp:Panel>
                                        </ItemTemplate>
                                    </asp:DataList>
                                </asp:Panel>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
                <asp:CollapsiblePanelExtender ID="Panel3_CollapsiblePanelExtender" 
                    runat="server" CollapseControlID="Image13" 
                    CollapsedImage="~/App_Themes/Padrao/Imagens/backoffice/arrow-down.png" 
                    Enabled="True" ExpandControlID="Image13" 
                    ExpandedImage="~/App_Themes/Padrao/Imagens/backoffice/arrow-up.png" 
                    ImageControlID="Image13" TargetControlID="Panel3">
                </asp:CollapsiblePanelExtender>
                <br />
                <table>
                    <tr>
                        <td>
                            <img src="App_Themes/Padrao/Imagens/backoffice/cxAbertoP.png" />
                            Caixa Selecionado&nbsp;&nbsp;&nbsp;
                        </td>
                        <td>
                            &nbsp;ID:&nbsp; &nbsp;<asp:Label ID="lblSelectID" runat="server" Text="-"></asp:Label>&nbsp;
                        </td>
                        <td>
                            &nbsp;CAIXA:&nbsp; &nbsp;<asp:Label ID="lblSelectCaixa" runat="server" Text="-"></asp:Label>&nbsp;
                        </td>
                    </tr>
                </table>
                <asp:ImageButton ID="btFechamento" runat="server" 
                    ImageUrl="~/App_Themes/Padrao/Imagens/backoffice/btFechamento.png" 
                    OnClick="btFechamento_Click" />
                <br />
                <hr />
                <br />
                <div class="movimentacao">
                    <table cellpadding="0" cellspacing="0">
                        <tr>
                            <td style="width: 10px; background-image: url('App_Themes/Padrao/Imagens/backoffice/bgTituloL.png');
                                background-repeat: no-repeat;">
                            </td>
                            <td style="width: 100%; background-image: url('App_Themes/Padrao/Imagens/backoffice/bgTituloC.png');
                                background-repeat: repeat-x;">
                                <div>
                                    <asp:Image ID="Image10" runat="server" ImageUrl="~/App_Themes/Padrao/Imagens/backoffice/icoMovimentacao.png"
                                        CssClass="esquerdo" />
                                    <div class="txtCinza18">
                                        Lançamento</div>
                                    <asp:HiddenField ID="hfCaixaTurnoId" runat="server" />
                                </div>
                            </td>
                            <td style="width: 11px; background-image: url('App_Themes/Padrao/Imagens/backoffice/bgTituloR.png');
                                background-repeat: no-repeat;">
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 10px; background: #c8c7c7; padding-right: 10px;">
                            </td>
                            <td class="bgMiolo" align="center">
                                <table>
                                    <tr>
                                        <td class="style3">
                                            Descrição:
                                        </td>
                                        <td class="style1" colspan="3">
                                            <asp:TextBox ID="txtMovDescricao" runat="server" Width="96%" MaxLength="60"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="rfvTxtMovDescricao" runat="server" ControlToValidate="txtMovDescricao"
                                                Display="None" ErrorMessage="Preenchimento obrigatório." ValidationGroup="movimentacao"></asp:RequiredFieldValidator>
                                            <asp:ValidatorCalloutExtender ID="vceTxtMovDescricao" runat="server" TargetControlID="rfvTxtMovDescricao">
                                            </asp:ValidatorCalloutExtender>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style4">
                                            Documento:
                                        </td>
                                        <td class="style6">
                                            <asp:TextBox ID="txtMovDocumento" runat="server" Width="96%" MaxLength="50"></asp:TextBox>
                                        </td>
                                        <td class="style7">
                                            Valor:
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtMovValor" runat="server" onkeypress="mascaraMoeda();" Width="96%"
                                                MaxLength="18"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="rfvTxtMovValor" runat="server" ControlToValidate="txtMovValor"
                                                Display="None" ErrorMessage="Preenchimento obrigatório." ValidationGroup="movimentacao"></asp:RequiredFieldValidator>
                                            <asp:ValidatorCalloutExtender ID="vceTxtMovValor" runat="server" TargetControlID="rfvTxtMovValor">
                                            </asp:ValidatorCalloutExtender>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style4">
                                            Tipo:
                                        </td>
                                        <td colspan="3">
                                            <asp:RadioButtonList ID="rbgMovNatureza" runat="server" RepeatDirection="Horizontal">
                                                <asp:ListItem Selected="True" Value="C">&nbsp;<img src="App_Themes/Padrao/Imagens/backoffice/tipoVerde.png" >&nbsp;Crédito</asp:ListItem>
                                                <asp:ListItem Value="D">&nbsp;<img src="App_Themes/Padrao/Imagens/backoffice/tipoVermelho.png" >&nbsp;Débito</asp:ListItem>
                                            </asp:RadioButtonList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style4">
                                            Origem:
                                        </td>
                                        <td colspan="3">
                                            <asp:RadioButtonList ID="rbgMovOrigem" runat="server" RepeatDirection="Horizontal"
                                                AutoPostBack="True" OnSelectedIndexChanged="rbgMovOrigem_SelectedIndexChanged">
                                                <asp:ListItem Value="A">&nbsp;<img src="App_Themes/Padrao/Imagens/backoffice/icoAcerto.png" >&nbsp;Acerto</asp:ListItem>
                                                <asp:ListItem Selected="True" Value="M">&nbsp;<img src="App_Themes/Padrao/Imagens/backoffice/icoMovimentacao1.png" >&nbsp;Movimento</asp:ListItem>
                                                <asp:ListItem Value="P">&nbsp;<img src="App_Themes/Padrao/Imagens/backoffice/icoProvisao.png" >&nbsp;Provisão</asp:ListItem>
                                                <asp:ListItem Value="S">&nbsp;<img src="App_Themes/Padrao/Imagens/backoffice/icoSangria.png" >&nbsp;Sangria</asp:ListItem>
                                            </asp:RadioButtonList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style4" align="center" colspan="4">
                                            <asp:Button ID="btnMovSalvar" runat="server" OnClick="btnMovSalvar_Click" Text="SALVAR"
                                                BackColor="#afacac" ForeColor="#4B4B4B" ValidationGroup="movimentacao" />
                                            &nbsp;
                                            <asp:Button ID="btnMovCancelar" runat="server" Text="CANCELAR" BackColor="#afacac"
                                                ForeColor="#4B4B4B" OnClick="btnMovCancelar_Click" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td style="width: 10px; background: #c8c7c7; padding-right: 11px;">
                            </td>
                        </tr>
                    </table>
                    <div class="bgRodape">
                    </div>
                </div>
                <table cellpadding="0" cellspacing="0">
                    <tr>
                        <td style="width: 9px; max-width:9px; min-width:9px; background-image: url('App_Themes/Padrao/Imagens/backoffice/bgTituloL.png');
                            background-repeat: no-repeat; padding-left: 10px;">
                        </td>
                        <td style="width: 100%; background-image: url('App_Themes/Padrao/Imagens/backoffice/bgTituloC.png');
                            background-repeat: repeat-x;">
                            <div class="txtCinza16" align="center">
                                <asp:Label ID="lblTotalCredito" runat="server" Text="Label"></asp:Label>
                                &nbsp;-
                                <asp:Label ID="lblTotalDebito" runat="server" Text="Label"></asp:Label>
                                &nbsp;-&nbsp;<asp:Label ID="lblTotal" runat="server" Text="Label" 
                                    Font-Bold="True" Font-Size="16px"></asp:Label>
                            </div>
                        </td>
                        <td style="width: 9px; background-image: url('App_Themes/Padrao/Imagens/backoffice/bgTituloR.png');
                            background-repeat: no-repeat; padding-right: 10px;">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3" style="background: #c8c7c7;">
                            <asp:GridView ID="gvMovLista" runat="server" AllowPaging="True" AutoGenerateColumns="false"
                                BackColor="White" BorderStyle="None" EmptyDataText="Nenhuma Movimentação Efetuada"
                                EnableModelValidation="True" GridLines="None" OnPageIndexChanging="gvMovLista_PageIndexChanging"
                                OnRowDataBound="gvMovLista_RowDataBound" Width="100%">
                                <Columns>
                                    <asp:BoundField DataField="mvto" HeaderText="Descrição" />
                                    <asp:BoundField DataField="nrDoc" HeaderText="Documento" />
                                    <asp:BoundField DataField="valor" HeaderText="Valor" />
                                    <asp:TemplateField HeaderText="Tipo">
                                        <ItemTemplate>
                                            <asp:HiddenField ID="hfMovListaIdCaixaMovimento" runat="server" Value='<%#Eval("PKString") %>' />
                                            <asp:Literal ID="ltlMovListaTipo" runat="server" Text="Tipo" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Origem">
                                        <ItemTemplate>
                                            <asp:Literal ID="ltlMovListaOrigem" runat="server" Text="Origem" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <HeaderStyle BackColor="#afacac" HorizontalAlign="Left" VerticalAlign="Middle" />
                                <RowStyle CssClass="tabelaCinzaClaro" />
                                <PagerStyle BorderStyle="None" BorderWidth="0px" CssClass="tabelaCinzaClaro" />
                                <AlternatingRowStyle BackColor="#cfcccc" />
                            </asp:GridView>
                        </td>
                    </tr>
                </table>
                <br />
            </div>
            <asp:Panel ID="pnlAbertura" runat="server" Visible="False" CssClass="popupPnlFundo">
                <table cellpadding="0" cellspacing="0">
                    <tr>
                        <td style="width: 10px; background-image: url('App_Themes/Padrao/Imagens/backoffice/bgTituloL.png');
                            background-repeat: no-repeat; padding-left: 10px;">
                        </td>
                        <td style="width: 100%; background-image: url('App_Themes/Padrao/Imagens/backoffice/bgTituloC.png');
                            background-repeat: repeat-x; font-size: 22px; font-weight: bolder;">
                            <img alt="" class="style2" 
                                src="App_Themes/Padrao/Imagens/backoffice/cxAbertoP.png" />
                            <asp:Label ID="lblCaixaAberturaTitulo" runat="server" Text="Abertura de Caixa" Visible="true"></asp:Label>
                            <asp:ModalPopupExtender ID="pnlAbertura_ModalPopupExtender" runat="server" BackgroundCssClass="popupFundo"
                                CancelControlID="btnCaixaAberturaCancelar" Enabled="true" PopupControlID="pnlAbertura"
                                TargetControlID="lblCaixaAberturaTitulo">
                            </asp:ModalPopupExtender>
                        </td>
                        <td style="width: 10px; background-image: url('App_Themes/Padrao/Imagens/backoffice/bgTituloR.png');
                            background-repeat: no-repeat; padding-right: 10px;">
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 10px; background: #c8c7c7;">
                        </td>
                        <td style="background: #c8c7c7;">
                            <table style="margin: 0 10px 10px 10px;">
                                <tr>
                                    <td align="right" style="font-size: 14px; font-weight: bold">
                                        ID do Caixa:
                                    </td>
                                    <td>
                                        <asp:Label ID="lblCaixaAberturaId" runat="server" Text="Label"></asp:Label>
                                    </td>
                                    <td align="right" style="font-size: 14px; font-weight: bold">
                                        Nome do Caixa:
                                    </td>
                                    <td>
                                        <asp:Label ID="lblCaixaAberturaNome" runat="server" Text="Label"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" style="font-size: 14px; font-weight: bold">
                                        Saldo Inicial:
                                    </td>
                                    <td colspan="3">
                                        <asp:Label ID="lblCaixaAberturaSaldo" runat="server" Text="Label"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" style="font-size: 14px; font-weight: bold" valign="top">
                                        Supervisor de Abertura:
                                    </td>
                                    <td colspan="3">
                                        <asp:DropDownList ID="ddlCaixaAberturaColaboradorSA" runat="server" DataTextField="pessoa"
                                            DataValueField="PKString" ValidationGroup="AbrirCaixa">
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator ID="rfvDdlCaixaAberturaColaboradorSA" runat="server"
                                            ControlToValidate="ddlCaixaAberturaColaboradorSA" Display="None" ErrorMessage="Preenchimento obrigatório."
                                            InitialValue="-1" ValidationGroup="AbrirCaixa"></asp:RequiredFieldValidator>
                                        <br />
                                        <asp:ValidatorCalloutExtender ID="vceDdlCaixaAberturaColaboradorSA" runat="server"
                                            TargetControlID="rfvDdlCaixaAberturaColaboradorSA">
                                        </asp:ValidatorCalloutExtender>
                                        <asp:CheckBox ID="cbCaixaAberturaColavboradorSA" runat="server" AutoPostBack="true"
                                            OnCheckedChanged="cbCaixaAberturaColavboradorSA_CheckedChanged" Text="Utilizar usuário logado como supervisor" />
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" style="font-size: 14px; font-weight: bold">
                                        Supervisor Senha:
                                    </td>
                                    <td colspan="3">
                                        <asp:TextBox ID="txtCaixaAberturaColaboradorSASenha" runat="server" ValidationGroup="AbrirCaixa"
                                            TextMode="Password"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="rfvTxtCaixaAberturaColaboradorSASenha" runat="server"
                                            ControlToValidate="txtCaixaAberturaColaboradorSASenha" Display="None" ErrorMessage="Preenchimento obrigatório."
                                            ValidationGroup="AbrirCaixa"></asp:RequiredFieldValidator>
                                        <asp:ValidatorCalloutExtender ID="rfvTxtCaixaAberturaColaboradorSASenha_ValidatorCalloutExtender"
                                            runat="server" BehaviorID="vceTxtCaixaAberturaColaboradorSASenha" TargetControlID="rfvTxtCaixaAberturaColaboradorSASenha">
                                        </asp:ValidatorCalloutExtender>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="4">
                                        <asp:Label ID="lblCaixaAberturaErro" runat="server" Text="Label" CssClass="popupAviso"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="4">
                                        <asp:Button ID="btCaixaAberturaAbrir" runat="server" OnClick="btCaixaAberturaAbrir_Click"
                                            BackColor="#afacac" ForeColor="#4B4B4B" Text="Abrir Caixa" ValidationGroup="AbrirCaixa" />
                                        &nbsp;
                                        <asp:Button ID="btnCaixaAberturaCancelar" runat="server" Text="Cancelar" BackColor="#afacac"
                                            ForeColor="#4B4B4B" />
                                    </td>
                                </tr>
                            </table>
                            <hr />
                        </td>
                        <td style="width: 10px; background: #c8c7c7;">
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <asp:Panel ID="pnlSangria" runat="server" CssClass="popupPnlFundo" Visible="False">
                <table cellpadding="0" cellspacing="0">
                    <tr>
                        <td style="width: 10px; background-image: url('App_Themes/Padrao/Imagens/backoffice/bgTituloL.png');
                            background-repeat: no-repeat; padding-left: 10px;">
                        </td>
                        <td style="width: 100%; background-image: url('App_Themes/Padrao/Imagens/backoffice/bgTituloC.png');
                            background-repeat: repeat-x; font-size: 22px; font-weight: bolder;">
                            <asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" BackgroundCssClass="popupFundo"
                                CancelControlID="btnCaixaAberturaCancelar" Enabled="true" PopupControlID="pnlAbertura"
                                TargetControlID="lblCaixaAberturaTitulo">
                            </asp:ModalPopupExtender>
                            <img alt="" class="style4" 
                                src="App_Themes/Padrao/Imagens/backoffice/icoSangria.png" />
                            <asp:Label ID="lblSangriaTitulo" runat="server" Text="Sangria"></asp:Label>
                            <asp:ModalPopupExtender ID="pnlSangria_ModalPopupExtender" runat="server" BackgroundCssClass="popupFundo"
                                CancelControlID="btnSangriaCancelar" Enabled="true" PopupControlID="pnlSangria"
                                TargetControlID="lblSangriaTitulo">
                            </asp:ModalPopupExtender>
                        </td>
                        <td style="width: 10px; background-image: url('App_Themes/Padrao/Imagens/backoffice/bgTituloR.png');
                            background-repeat: no-repeat; padding-right: 10px;">
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 10px; background: #c8c7c7;">
                        </td>
                        <td style="background: #c8c7c7;">
                            <table style="margin: 0 10px 10px 10px;">
                                <tr>
                                    <td align="right" style="font-size: 14px; font-weight: bold" valign="top">
                                        Ticket:
                                    </td>
                                    <td>
                                        <asp:CheckBox ID="cbSangriaTicketGerar" runat="server" Text="Gerar Ticket" />
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" style="font-size: 14px; font-weight: bold" valign="top">
                                        Supervisor da Sangria:
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlSangriaColocaboradorS" runat="server" DataTextField="pessoa"
                                            DataValueField="PKString" ValidationGroup="sangria">
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator ID="rfvDdlSangriaColocaboradorS" runat="server" ControlToValidate="ddlSangriaColocaboradorS"
                                            Display="None" ErrorMessage="Preenchimento obrigatório." InitialValue="-1" ValidationGroup="sangria"></asp:RequiredFieldValidator>
                                        <br />
                                        <asp:ValidatorCalloutExtender ID="vceDdlSangriaColocaboradorS" runat="server" TargetControlID="rfvDdlSangriaColocaboradorS">
                                        </asp:ValidatorCalloutExtender>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="font-size: 14px; font-weight: bold" align="right">
                                        Supervisor Senha:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtSangriaColaboradorSSenha" runat="server" TextMode="Password"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="rfvTxtSangriaColaboradorSSenha" runat="server" ControlToValidate="txtSangriaColaboradorSSenha"
                                            Display="None" ErrorMessage="Preenchimento obrigatório." ValidationGroup="sangria"></asp:RequiredFieldValidator>
                                        <asp:ValidatorCalloutExtender ID="vceTxtSangriaColaboradorSSenha" runat="server"
                                            TargetControlID="rfvTxtSangriaColaboradorSSenha">
                                        </asp:ValidatorCalloutExtender>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" align="center">
                                        <asp:Label ID="lblSangriaErro" runat="server" Text="Label" CssClass="popupAviso"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="2">
                                        <asp:Button ID="btSangriaSalvar" runat="server" OnClick="btSangriaSalvar_Click" Text="Salvar Sangria"
                                            BackColor="#afacac" ForeColor="#4B4B4B" ValidationGroup="sangria" />
                                        &nbsp;
                                        <asp:Button ID="btnSangriaCancelar" runat="server" Text="Cancelar" BackColor="#afacac"
                                            ForeColor="#4B4B4B" />
                                    </td>
                                </tr>
                            </table>
                            <hr />
                        </td>
                        <td style="width: 10px; background: #c8c7c7;">
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <asp:Panel ID="pnlFechamento" runat="server" CssClass="popupPnlFundo" Visible="False">
                <table cellpadding="0" cellspacing="0">
                    <tr>
                        <td style="width: 10px; background-image: url('App_Themes/Padrao/Imagens/backoffice/bgTituloL.png');
                            background-repeat: no-repeat; padding-left: 10px;">
                        </td>
                        <td style="width: 100%; background-image: url('App_Themes/Padrao/Imagens/backoffice/bgTituloC.png');
                            background-repeat: repeat-x; font-size: 22px; font-weight: bolder;">
                            <asp:ModalPopupExtender ID="ModalPopupExtender2" runat="server" BackgroundCssClass="popupFundo"
                                CancelControlID="btnCaixaAberturaCancelar" Enabled="true" PopupControlID="pnlAbertura"
                                TargetControlID="lblCaixaAberturaTitulo">
                            </asp:ModalPopupExtender>
                            <asp:ModalPopupExtender ID="ModalPopupExtender3" runat="server" BackgroundCssClass="popupFundo"
                                CancelControlID="btnSangriaCancelar" Enabled="true" PopupControlID="pnlSangria"
                                TargetControlID="lblSangriaTitulo">
                            </asp:ModalPopupExtender>
                            <img alt="" class="style2" 
                                src="App_Themes/Padrao/Imagens/backoffice/cxFechadoP.png" />
                            <asp:Label ID="lblFechamentoTitulo" runat="server" Text="Fechamento"></asp:Label>
                            <asp:ModalPopupExtender ID="pnlFechamento_ModalPopupExtender" runat="server" BackgroundCssClass="popupFundo"
                                CancelControlID="btnFechamentoCancelar" Enabled="true" PopupControlID="pnlFechamento"
                                TargetControlID="lblFechamentoTitulo">
                            </asp:ModalPopupExtender>
                        </td>
                        <td style="width: 10px; background-image: url('App_Themes/Padrao/Imagens/backoffice/bgTituloR.png');
                            background-repeat: no-repeat; padding-right: 10px;">
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 10px; background: #c8c7c7;">
                        </td>
                        <td style="background: #c8c7c7;">
                            <table style="margin: 0 10px 10px 10px;">
                                <tr>
                                    <td align="right" style="font-size: 14px; font-weight: bold" valign="top">
                                        Supervisor do Fechamento:
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlFechamentoColocaboradorSF" runat="server" DataTextField="pessoa"
                                            DataValueField="PKString" ValidationGroup="fechamento">
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator ID="rfvDdlFechamentoColocaboradorSF" runat="server" ControlToValidate="ddlFechamentoColocaboradorSF"
                                            Display="None" ErrorMessage="Preenchimento obrigatório." InitialValue="-1" ValidationGroup="fechamento"></asp:RequiredFieldValidator>
                                        <br />
                                        <asp:ValidatorCalloutExtender ID="vceDdlFechamentoColocaboradorSF" runat="server"
                                            TargetControlID="rfvDdlFechamentoColocaboradorSF">
                                        </asp:ValidatorCalloutExtender>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="font-size: 14px; font-weight: bold" align="right">
                                        Supervisor Senha:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtFechamentoColocaboradorSFSenha" runat="server" TextMode="Password"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="rfvTxtFechamentoColocaboradorSFSenha" runat="server"
                                            ControlToValidate="txtFechamentoColocaboradorSFSenha" Display="None" ErrorMessage="Preenchimento obrigatório."
                                            ValidationGroup="fechamento"></asp:RequiredFieldValidator>
                                        <asp:ValidatorCalloutExtender ID="vceTxtFechamentoColocaboradorSFSenha" runat="server"
                                            TargetControlID="rfvTxtFechamentoColocaboradorSFSenha">
                                        </asp:ValidatorCalloutExtender>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" align="center">
                                        <asp:Label ID="lblFechamentoErro" runat="server" Text="Label" CssClass="popupAviso"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="2">
                                        <asp:Button ID="btFechamentoSalvar" runat="server" OnClick="btFechamentoSalvar_Click"
                                            BackColor="#afacac" ForeColor="#4B4B4B" Text="Salvar Fechamento" ValidationGroup="fechamento" />
                                        &nbsp;
                                        <asp:Button ID="btnFechamentoCancelar" runat="server" Text="Cancelar" BackColor="#afacac"
                                            ForeColor="#4B4B4B" />
                                    </td>
                                </tr>
                            </table>
                            <hr />
                        </td>
                        <td style="width: 10px; background: #c8c7c7;">
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <asp:Panel ID="pnlProvisao" runat="server" CssClass="popupPnlFundo" Visible="False">
                <table cellpadding="0" cellspacing="0">
                    <tr>
                        <td style="width: 10px; background-image: url('App_Themes/Padrao/Imagens/backoffice/bgTituloL.png');
                            background-repeat: no-repeat; padding-left: 10px;">
                        </td>
                        <td style="width: 100%; background-image: url('App_Themes/Padrao/Imagens/backoffice/bgTituloC.png');
                            background-repeat: repeat-x; font-size: 22px; font-weight: bolder;">
                            <asp:ModalPopupExtender ID="ModalPopupExtender4" runat="server" BackgroundCssClass="popupFundo"
                                CancelControlID="btnCaixaAberturaCancelar" Enabled="true" PopupControlID="pnlAbertura"
                                TargetControlID="lblCaixaAberturaTitulo">
                            </asp:ModalPopupExtender>
                            <asp:ModalPopupExtender ID="ModalPopupExtender5" runat="server" BackgroundCssClass="popupFundo"
                                CancelControlID="btnSangriaCancelar" Enabled="true" PopupControlID="pnlSangria"
                                TargetControlID="lblSangriaTitulo">
                            </asp:ModalPopupExtender>
                            <asp:ModalPopupExtender ID="ModalPopupExtender6" runat="server" BackgroundCssClass="popupFundo"
                                CancelControlID="btnFechamentoCancelar" Enabled="true" PopupControlID="pnlFechamento"
                                TargetControlID="lblFechamentoTitulo">
                            </asp:ModalPopupExtender>
                            <img alt="" class="style4" 
                                src="App_Themes/Padrao/Imagens/backoffice/icoProvisao.png" />
                            <asp:Label ID="lblProvisaoTitulo" runat="server" Text="Provisão"></asp:Label>
                            <asp:ModalPopupExtender ID="pnlProvisao_ModalPopupExtender" runat="server" BackgroundCssClass="popupFundo"
                                CancelControlID="btnProvisaoCancelar" Enabled="true" PopupControlID="pnlProvisao"
                                TargetControlID="lblProvisaoTitulo">
                            </asp:ModalPopupExtender>
                        </td>
                        <td style="width: 10px; background-image: url('App_Themes/Padrao/Imagens/backoffice/bgTituloR.png');
                            background-repeat: no-repeat; padding-right: 10px;">
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 10px; background: #c8c7c7;">
                        </td>
                        <td style="background: #c8c7c7;">
                            <table style="margin: 0 10px 10px 10px;">
                                <tr>
                                    <td align="right" style="font-size: 14px; font-weight: bold" valign="top">
                                        Ticket:
                                    </td>
                                    <td>
                                        <asp:CheckBox ID="cbProvisaoResgatarTickt" runat="server" AutoPostBack="True" OnCheckedChanged="cbProvisaoResgatarTickt_CheckedChanged"
                                            Text="Resgatar Ticket" />
                                        <asp:DropDownList ID="ddlProvisaoTicket" runat="server">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" style="font-size: 14px; font-weight: bold" valign="top">
                                        Supervisor da Provisão:
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlProvisaoColocaboradorS" runat="server" DataTextField="pessoa"
                                            DataValueField="PKString" ValidationGroup="provisao">
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator ID="rfvDdlProvisaoColocaboradorS" runat="server" ControlToValidate="ddlProvisaoColocaboradorS"
                                            Display="None" ErrorMessage="Preenchimento obrigatório." InitialValue="-1" ValidationGroup="provisao"></asp:RequiredFieldValidator>
                                        <br />
                                        <asp:ValidatorCalloutExtender ID="vceDdlProvisaoColocaboradorS" runat="server" TargetControlID="rfvDdlProvisaoColocaboradorS">
                                        </asp:ValidatorCalloutExtender>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="font-size: 14px; font-weight: bold" align="right">
                                        Supervisor Senha:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtProvisaoColocaboradorSSenha" runat="server" TextMode="Password"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="rfvTxtProvisaoColocaboradorSSenha" runat="server"
                                            ControlToValidate="txtProvisaoColocaboradorSSenha" Display="None" ErrorMessage="Preenchimento obrigatório."
                                            ValidationGroup="provisao"></asp:RequiredFieldValidator>
                                        <asp:ValidatorCalloutExtender ID="vceTxtProvisaoColocaboradorSSenha" runat="server"
                                            TargetControlID="rfvTxtProvisaoColocaboradorSSenha">
                                        </asp:ValidatorCalloutExtender>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" align="center">
                                        <asp:Label ID="lblProvisaoErro" runat="server" Text="Label" CssClass="popupAviso"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="2">
                                        <asp:Button ID="btProvisaoSalvar" runat="server" OnClick="btProvisaoSalvar_Click"
                                            BackColor="#afacac" ForeColor="#4B4B4B" Text="Salvar Provisão" ValidationGroup="provisao" />
                                        &nbsp;
                                        <asp:Button ID="btnProvisaoCancelar" runat="server" Text="Cancelar" BackColor="#afacac"
                                            ForeColor="#4B4B4B" />
                                    </td>
                                </tr>
                            </table>
                            <hr />
                        </td>
                        <td style="width: 10px; background: #c8c7c7;">
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <asp:Panel ID="pnlAcerto" runat="server" CssClass="popupPnlFundo" Visible="False">
                <table cellpadding="0" cellspacing="0">
                    <tr>
                        <td style="width: 10px; background-image: url('App_Themes/Padrao/Imagens/backoffice/bgTituloL.png');
                            background-repeat: no-repeat; padding-left: 10px;">
                        </td>
                        <td style="width: 100%; background-image: url('App_Themes/Padrao/Imagens/backoffice/bgTituloC.png');
                            background-repeat: repeat-x; font-size: 22px; font-weight: bolder;">
                            <asp:ModalPopupExtender ID="ModalPopupExtender7" runat="server" BackgroundCssClass="popupFundo"
                                CancelControlID="btnCaixaAberturaCancelar" Enabled="true" PopupControlID="pnlAbertura"
                                TargetControlID="lblCaixaAberturaTitulo">
                            </asp:ModalPopupExtender>
                            <asp:ModalPopupExtender ID="ModalPopupExtender8" runat="server" BackgroundCssClass="popupFundo"
                                CancelControlID="btnSangriaCancelar" Enabled="true" PopupControlID="pnlSangria"
                                TargetControlID="lblSangriaTitulo">
                            </asp:ModalPopupExtender>
                            <asp:ModalPopupExtender ID="ModalPopupExtender9" runat="server" BackgroundCssClass="popupFundo"
                                CancelControlID="btnFechamentoCancelar" Enabled="true" PopupControlID="pnlFechamento"
                                TargetControlID="lblFechamentoTitulo">
                            </asp:ModalPopupExtender>
                            <img alt="" class="style4" 
                                src="App_Themes/Padrao/Imagens/backoffice/icoAcerto.png" />
                            <asp:Label ID="lblAcertoTitulo" runat="server" Text="Acerto"></asp:Label>
                            <asp:ModalPopupExtender ID="pnlAcerto_ModalPopupExtender" runat="server" 
                                BackgroundCssClass="popupFundo" CancelControlID="btnAcertoCancelar" 
                                Enabled="true" PopupControlID="pnlAcerto" TargetControlID="lblAcertoTitulo">
                            </asp:ModalPopupExtender>
                        </td>
                        <td style="width: 10px; background-image: url('App_Themes/Padrao/Imagens/backoffice/bgTituloR.png');
                            background-repeat: no-repeat; padding-right: 10px;">
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 10px; background: #c8c7c7;">
                        </td>
                        <td style="background: #c8c7c7;">
                            <table style="margin: 0 10px 10px 10px;">
                                <tr>
                                    <td align="right" style="font-size: 14px; font-weight: bold" valign="top">
                                        Supervisor do Fechamento:
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlAcertoColocaboradorS" runat="server" DataTextField="pessoa"
                                            DataValueField="PKString" ValidationGroup="abertura">
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator ID="rfvDdlAcertoColocaboradorS" runat="server" ControlToValidate="ddlAcertoColocaboradorS"
                                            Display="None" ErrorMessage="Preenchimento obrigatório." InitialValue="-1" ValidationGroup="abertura"></asp:RequiredFieldValidator>
                                        <br />
                                        <asp:ValidatorCalloutExtender ID="vceDdlAcertoColocaboradorS" runat="server" TargetControlID="rfvDdlAcertoColocaboradorS">
                                        </asp:ValidatorCalloutExtender>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="font-size: 14px; font-weight: bold" align="right">
                                        Supervisor Senha:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtAcertoColocaboradorSSenha" runat="server" TextMode="Password"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="rfvTxtAcertoColocaboradorSSenha" runat="server" ControlToValidate="txtAcertoColocaboradorSSenha"
                                            Display="None" ErrorMessage="Preenchimento obrigatório." ValidationGroup="abertura"></asp:RequiredFieldValidator>
                                        <asp:ValidatorCalloutExtender ID="vceTxtAcertoColocaboradorSSenha" runat="server"
                                            TargetControlID="rfvTxtAcertoColocaboradorSSenha">
                                        </asp:ValidatorCalloutExtender>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" align="center">
                                        <asp:Label ID="lblAcertoErro" runat="server" Text="Label" CssClass="popupAviso"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="2">
                                        <asp:Button ID="btAcertoSalvar" runat="server" OnClick="btAcertoSalvar_Click" Text="Salvar Acerto"
                                            BackColor="#afacac" ForeColor="#4B4B4B" ValidationGroup="abertura" />
                                        &nbsp;
                                        <asp:Button ID="btnAcertoCancelar" runat="server" Text="Cancelar" BackColor="#afacac"
                                            ForeColor="#4B4B4B" />
                                    </td>
                                </tr>
                            </table>
                            <hr />
                        </td>
                        <td style="width: 10px; background: #c8c7c7;">
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="cbProvisaoResgatarTickt" EventName="CheckedChanged" />
            <asp:AsyncPostBackTrigger ControlID="cbCaixaAberturaColavboradorSA" EventName="CheckedChanged" />
        </Triggers>
    </asp:UpdatePanel>
    </form>
</body>
</html>
